package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.BuyRightnow;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.BUY_RIGHTNOW)
public class ConnBuyNow extends BaseAsyPost<BuyRightnow> {

    public String member_id, goods_id, num, goodsattr;


    public ConnBuyNow(String member_id, String goods_id, String num, String goodsattr,  AsyCallBack<BuyRightnow> asyCallBack) {
        super(asyCallBack);

        this.member_id = member_id;
        this.goods_id = goods_id;
        this.num = num;
        this.goodsattr = goodsattr;
    }
    @Override
    protected BuyRightnow parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");


        Gson gson = new Gson();

        BuyRightnow loginBean = new BuyRightnow();

        loginBean = gson.fromJson(object.toString(), BuyRightnow.class);


        return loginBean;


    }
}



